<?php

use Illuminate\Support\Facades\Route;

use App\Http\Controllers\Web\RongshuController;
use App\Http\Controllers\Web\TianzhenlanController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

Route::get('/order/enterance', [RongshuController::class, 'enterance']);
Route::get('/order/test', [RongshuController::class, 'test']);

Route::group(['prefix' => '/naiveopen/book', 'middleware' => ['request.log']], function() {
    Route::post('bookresultnotify',    [TianzhenlanController::class, 'bookresultnotify']);
    Route::post('booktimemodifynotify',[TianzhenlanController::class, 'booktimemodifynotify']);
    Route::post('cancelInotify',       [TianzhenlanController::class, 'cancelnotify']);
    Route::post('consumenotify',       [TianzhenlanController::class, 'consumenotify']);
    Route::post('completednotify',     [TianzhenlanController::class, 'completednotify']);
    Route::post('cancelnotify',        [TianzhenlanController::class, 'cancelnotify']);
});
